<template>
	<view>
		<view class="content">
			<text class="title">{{title}}</text>
		</view>
		<view>
			<view>{{number+1}}</view>
			<view>{{ok?'YES':'NO'}}</view>
			<view>{{message.split('').reverse().join('')}}</view>
		</view>
		<view v-if="!raining">今天天气真好</view>
		<view v-if="raining">下雨天，只能在家呆着</view>
		<view v-if="state==='vue'">state的值是</view>
		<view>State is {{state?'vue':'APP'}}</view>
		<view>
			<view v-if="state==='vue'">uni-app</view>
			<view v-else-if="state===html"></view>
			<view v-else>APP</view>
			<view v-for="item in arr" style="color: #ff0000;">{{item}}</view>
			<view v-for="(item,index) in 6" style="color: #00ff00;">
				<view :class="'list-'+ index%2">{{index+1}}</view>
			</view>
			<view v-for="(value,name,index) in object">{{index}}.{{name}}:{{value}}</view>
			<view v-for="item in arr":key="item.id">
				<view style="color: #0000ff;">{{item.id}}:{{item.name}}</view>
			</view>
		
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'Hello UniAPP',
				number:1,
				ok:true,
				message:'Hello vue',
				raining:false,
				state:'vue',
				arr:[
					{id:1,name:'uni-app'},
					{id:2,name:'Html'},
					
				],
				object:{
					title:'How',
					author:'jane',
					publisheAt:'2020'
				}
			}
		},
		methods: {
			get(e){
				if(typeof e==='a'){
					
				}
			}
		}
	}
</script>

<style>

</style>
